<!-- 电商日报-2美全销售达成 -->

<template>
  <div class="mainTable">
    <BaseTable ref="sonTable" :query="query" :tableItems="tableItems" :updateItems="updateItems"
      :optionList="optionList" :methodParam="methodParam" :Btn="Btn" menuName="logRecord" pageName="mainTable" />
  </div>
</template>
<script>
import dayjs from "dayjs"
import BaseTable from "../../../table/sonTable.vue";
export default {
  name: "mqxsdc",
  data() {
    return {
      //后端人员修改-S
      //查询参数
      query: [{ prop: "startDate", type: "time", placeholder: "请选择", value: "2023-03-01", name: "开始时间", timeType: 'date', format: 'yyyy-MM-dd', valueFormat: 'yyyy-MM-dd' },
      { prop: "endDate", type: "time", placeholder: "请选择", value: "2025-04-01", name: "结束时间", timeType: 'date', format: 'yyyy-MM-dd', valueFormat: 'yyyy-MM-dd' },],
      


      //表格表头
      tableItems: [
        { name: "上传时间", prop: "上传该条数据记录的时间", align: "left" },
        { name: "日期", prop: "日期", align: "left" },
        { name: "品牌", prop: "品牌", align: "left" },
        { name: "店铺", prop: "店铺", align: "left" },
        { name: "日目标", prop: "日目标" },
        { name: "实际达成", prop: "实际达成" },
        { name: "达成率", prop: "达成率" },
        { name: "该月目标", prop: "该月目标" },
        { name: "累计达成", prop: "累计达成" },
        { name: "达成进度", prop: "达成进度" },
        { name: "数据说明", prop: "数据说明", align: "left" },
        { name: "接下来核心动作", prop: "接下来核心动作", align: "left" },
        { name: "负责人", prop: "负责人", align: "left" },



      ],
      //增删查改的对象属性
      updateItems: [//edit是回复
        { name: "文件名称", prop: "fileName", type: "input", disabled: true },
        { name: "上传类型", prop: "uploadType", type: "select" },
        { name: "备注", prop: "remark", type: "textarea" },
        { name: "上传文件", prop: "fileAdd", type: "upload" },
      ],
      //增删查改的对象属性的下拉select或者级联cascader
      optionList: {
        unit: [
          { label: "日", value: "日" },
          { label: "周", value: "周" },
          { label: "月", value: "月" },
          { label: "年", value: "年" },
        ]
      },
      //增删查改方法参数
      // methodParam: "getPopPurpopExppopMonth",  
      methodParam: "getMyjQyaSalesAchievementDay", 
      //自定义btn功能
      Btn: {
        search: true, //查询按钮
        add: false, //添加按钮
        edit: false, //回复按钮
        detail: false, //详情按钮
        delete: false, //删除按钮
        deletes: false, //批量删除按钮
        export: true, //导出按钮
        templateDownload: false, //模板下载按钮
        upload: false, //上传按钮
      },
      //后端人员修改-E
    };
  },
  components: {
    BaseTable
  },
  created() {
    let _this = this

  }
};
</script>
<style scoped lang="less">
.mainTable {
  background-color: #f1f2f9;
}
</style>